//
//  DXWYuLeFlowLayout.m
//  pandaTV
//
//  Created by 淡馨慰 on 16/9/4.
//  Copyright © 2016年 淡馨慰. All rights reserved.
//

#import "DXWYuLeFlowLayout.h"

@implementation DXWYuLeFlowLayout

- (void)prepareLayout
{
    [super prepareLayout];
    NSInteger col = 2;
    CGFloat itemW = ([UIScreen mainScreen].bounds.size.width - (col + 1) * dxw_margin_5) / col - 0.0001;
    CGFloat itemH = 0.8 * itemW ;
    self.itemSize = CGSizeMake(itemW, itemH);
    self.minimumLineSpacing = dxw_margin_5;
    self.minimumInteritemSpacing = dxw_margin_5;
    self.sectionInset = UIEdgeInsetsMake(0, dxw_margin_5, 0, dxw_margin_5);
}

@end
